import {
	request
}
from './req';

const telLogin = params => request('hc/hcUser/login', params, 'get');
const login=params=>request('sys/login',params,'post');
const getMainCategories=params => request('hc/hcMainCategories/getList', params, 'get');
const getPosiList=params=>request('hc/hcSite/list', params, 'get');
const getStoreList=params=>request('hc/hcMerchant/list',params,'get');
const createStore=params=>request('hc/hcMerchant/add', params, 'post');
const editStore=params=>request('hc/hcMerchant/edit', params, 'post');
const addGood=params=>request('hc/hcCommodity/add', params, 'post');
const getGoodList=params=>request('hc/hcCommodity/list',params,'get');
const editGood=params=>request('hc/hcCommodity/edit',params,'post');
const editGoodUpFlag=params=>request('hc/hcCommodity/editUpFlag',params,'post');
const getAfterSalesList=params=>request('hc/hcAfterSales/list',params,'get');
const editAfterSaleOrder=params=>request('hc/hcAfterSales/edit',params,'post');
const getOrderList=params=>request('hc/hcOrderMerchant/list',params,'get');
const deteleGood=params=>request('hc/hcCommodity/delete',params,'delete');
const getFoodStateTotal=params=>request('hc/hcCommodity/getStatistics',params,'get');
const batchChangeLimitBuy=params=>request('hc/hcCommodity/editLimitBuyBatch',params,'post');
const batchChangeState=params=>request('/hc/hcCommodity/editUpFlagBatch',params,'post');
const batchChangeStoreState=params=>request('/hc/hcMerchant/editStateBatch',params,'post');
const getStoreToken=params=>request('/hc/hcMerchant/getTokenById',params,'get');
const getDispatcherList=params=>request('/hc/hcRider/getList',params,'get');
const getDeliveryList=params=>request('/hc/hcRiderStatistics/list',params,'get');
// const getGoodList = params => request('hc/hcCommodity/getMerchantList', params, 'get');
// const cancelOrder=params=>request('/hc/hcOrderMerchant/cancelOrder',params,'get')
const cancelOrder=params=>request('/hc/hcOrderMerchant/platformCancelOrder',params,'get')

const exportExcel=params=>request('/hc/hcOrderMerchant/exportXlsBySearch',params,'get');
const deleteStore=params=>request('/hc/hcMerchant/delete',params,'delete');

export {
	telLogin, //手机号登录
	login, //
	getMainCategories, //获取主营品类
	getPosiList, //获取站点列表
	getStoreList, //获取门店列表
	createStore, //创建门店
	editStore, //编辑门店
	addGood, //创建商品
	getGoodList, //获取商品列表
	editGood, //编辑商品信息
	editGoodUpFlag, //编辑商品的上下架
	getAfterSalesList, //获取售后列表
	editAfterSaleOrder, //编辑售后订单
	getOrderList, //获取订单列表
	deteleGood, //删除商品
	getFoodStateTotal, //获取商家各状态的总数
	exportExcel, //导出excel
	batchChangeLimitBuy, //批量修改商品库存
	batchChangeState, //批量修改商品上下架
	batchChangeStoreState, //批量修改店铺状态
	getStoreToken, //获取商家的token
	getDispatcherList, //获取配送员list
	getDeliveryList, //骑手信息统计
	cancelOrder, //取消订单
	deleteStore
}
